import { MtEntity } from '@/api/manager/mt'
/**轮询数据返回的数据结构 + cometd
 * 获取轮询信息 /meetingapiweb/mcc/{meeting_id}/poll/{type}
 */
export interface FetchMixResponseEntity {
	/**混音预案id，跨级建云会议机房创会需要，不对外*/
	id?: string
	/**混音模式1-智能混音;2-定制混音;*/
	mode: 1 | 2
	/**预案名称*/
	name: string
	/**混音终端成员*/
	members: Array<MtEntity>
	/** 是否开始画面合成 */
	state?: 0 | 1 | 2
}
export interface StartParamsMixEntity {
	/**混音预案id，跨级建云会议机房创会需要，不对外*/
	id?: string
	/**混音模式1-智能混音;2-定制混音;*/
	mode: number
	/**预案名称*/
	name: string
	/**混音终端成员*/
	members: Array<
		Partial<{
			e164: string
			mt_id: string
			mt_ip: string
			mt_key: string
			name: string
			conf_e164: string
			portrait?: string
			account: string
			protocol: string
			often_mt: number
			stream: number
			interactive_mt: number
			mute: number
			online: number
			account_type: number
			bitrate: number
			mt_type: number
		}>
	>
}
export interface changeMixMembersEntity {
	e164: string
	mt_id: string
	mt_ip: string
	mt_key: string
	name: string
	conf_e164: string
	portrait?: string
	account: string
	protocol: string
	often_mt?: number
	stream: number
	interactive_mt: number
	online: number
	account_type: number
	bitrate: number
	mt_type: number
}
/**接口返回预案实体 */
export type PlanResponseEntity = Array<{
	/**预案名称 */
	name: string
	/**预案id */
	id: string
	/**画面合成模式 */
	mode?: string
}>
/**预案详情返回数据 */
export type PlanResponsePollEntity = {
	id: string
	members: Array<MtEntity>
	mode: number
	name: string
}
